/**
 * 
 */
package com.spider.silence.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.spider.silence.downloader.XiQinHuiGuanDownLoader;
import com.spider.silence.pool.XiQinHuiGuanDownLoaderPool;
import org.quartz.StatefulJob;

/**
 * @title XiQinHuiGuanJob.java
 * @author liyuanguo
 * @time 2017年4月18日 上午10:56:13
 * @description TODO
 * @version V1.0
 */
public class XiQinHuiGuanJob implements StatefulJob {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
    	XiQinHuiGuanDownLoader downLoader=null;
        try {
            downLoader = XiQinHuiGuanDownLoaderPool.getInstance().fetchDownLoader(1000);
            downLoader.generateTask();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }finally {
        	XiQinHuiGuanDownLoaderPool.getInstance().releaseDownLoader(downLoader);
        }
    }
}
